package br.com.tas.dao.util.interfaces;

import java.util.List;

import br.com.tas.exception.DataException;
import br.com.tas.model.interfaces.IBaseBean;

public interface IGenericDao<T extends IBaseBean> {

	long save(T entity) throws DataException;

	void update(T entity) throws DataException;

	long insert(T entity) throws DataException;

	int delete(T entity) throws DataException;

	T findId(T entity) throws DataException;

	List<T> findAll(T entity) throws DataException;

	List<T> findWhere(T entity, String where, String[] whereArgs, String orderBy)
			throws DataException;

	void close();
}
